go to previous page   go to home page   go to next page

Answer:

The blanks are filled, below.


Order of Exceptions

try
{
    . . . . 
}
catch(  FileNotFoundException nfx  )
{
}

catch(  IOException iox  )
{
}

Of course, you can use any names for the arguments of the catch{} clauses. The blocks have to be in the given order since FileNotFoundException is a child class of IOException Also, the blocks should actually do something.

All that remains is to check the command line arguments. The command line looks like this:

java copyBytes sourceFile to destinationFile

(Review chapter 49B if you have forgotten about command line arguments.)


QUESTION 21:

How many arguments are there in this command line?